<?php if(!defined('SABLOG_ROOT')) exit('Access Denied');?>
{template header}
	<!-- Main -->
	<div id="main">
		<script type="text/javascript" src="$options[url]include/jscript/ajax.js"></script>
		<script type="text/javascript" src="$options[url]include/jscript/show.js"></script>
		<script type="text/javascript" src="$options[url]include/jscript/fiximage.js"></script>
		<script type="text/javascript">
		window.onload=function(){
			fiximage('$options[attachments_thumbs_size]');
		}
		</script>
		<!--{if !$cid}-->
		<!-- Featured Post -->
		<div class="featured-post" id="post-17">
		<!--{if $total}-->
			<div class="post-title">
				<h2><!--{if $articledb[0]['stick']}-->[置顶] <!--{/if}-->
						<a href="$articledb[0][url]">$articledb[0][title]</a></h2>
				<div class="post-title-info">
					<div class="post-date">Written by <a href="$articledb[0][userurl]">$articledb[0][username]</a> on $articlenews[dateline]</div>
					<div class="post-comments"><a href="$articledb[0][url]#comment">$articledb[0][comments] Comments</a></div>
				</div>
			</div>
			<div class="post-entry">
				<!--{if !$articledb[0]['allowread']}-->
					<div class="needpwd">
						<form action="$articledb[0][url]" method="post">
						这篇日志被加密了，请输入密码后查看。<br />
						<input class="formfield" type="password" name="readpassword" style="margin-right:5px;" />
						<button type="submit">提交</button>
						</form>
					</div>
				<!--{else}-->
					<div class="post-body"><img height="190" width="172" align="left" alt="" tppabs="http://wpjunction.com/starmag/featured.png" src="featured.png" title="Featured Image" style="margin-left: 5px; margin-right: 5px;"/>$articledb[0][content]
					<!--{if $articledb[0]['description']}-->
						<p>&raquo; <a href="$articledb[0][url]">阅读全文</a></p>
					<!--{/if}-->
					</div>
				<!--{/if}-->
			</div>
			<div class="post-category">
				<!--{if $articledb[0]['keywords']}-->
					Tags: $articledb[0][alltags]
				<!--{/if}-->
			</div>

		<!--{else}-->
			<p>没有任何文章</p>
		<!--{/if}-->
		</div>
        
		<!-- /Featured Post -->
		
		<!-- Sidebar Ads -->
<div class="sidebar-ads"><div class="sidebar-ads-top"><div class="sidebar-ads-bottom">
	<div class="sidebar-banner"><a href="#"><img src="$options[url]templates/$options[templatename]/img/banner_125x125.jpg" tppabs="http://wpjunction.com/starmag/wp-content/themes/StarMag/ads/banner_125x125.jpg" alt="Banner" /></a></div>
	<div class="sidebar-banner"><a href="#"><img src="$options[url]templates/$options[templatename]/img/banner_125x125.jpg" tppabs="http://wpjunction.com/starmag/wp-content/themes/StarMag/ads/banner_125x125.jpg" alt="Banner" /></a></div>
	<div class="sidebar-banner"><a href="#"><img src="$options[url]templates/$options[templatename]/img/banner_125x125.jpg" tppabs="http://wpjunction.com/starmag/wp-content/themes/StarMag/ads/banner_125x125.jpg" alt="Banner" /></a></div>
	<div class="sidebar-banner"><a href="#"><img src="$options[url]templates/$options[templatename]/img/banner_125x125.jpg" tppabs="http://wpjunction.com/starmag/wp-content/themes/StarMag/ads/banner_125x125.jpg" alt="Banner" /></a></div>
	<div class="clear"></div>
</div></div></div>
<!-- /Sidebar Ads -->		
		<div class="clear"></div>
		
		<!-- Top Panel -->
		<div id="top-panel"><div id="top-panel-top"><div id="top-panel-bottom">
			<div class="top-panel-box">
				<h3>最新发表</h3>
				<ul>
                <!--{if $total}-->
					<!--{loop $articledbdiy $articlediy}-->
						<li><a href="$article[url]"><span>$articlediy[dateline]</span>$articlediy[title]</a></li>
                    <!--{/loop}-->
                <!--{/if}-->
				</ul>
			</div>
			<div class="top-panel-about">
								<h3>About Us</h3>			<div class="textwidget"><img src="about.gif" tppabs="http://leafo.wpjunction.com/wp-content/themes/leafo/images/about.gif" alt="" align="right" />Aliquet tellus cras, arcu accumsan lorem in, vestibulum dolor mus, sus cipit suspendisse sed volutpat rutru m a, enim ut montes vulputate tortor luctus auctor. Habitasse arcu cupidit ate. Ligula mauris aptent interdum, sit est fusce arcu in sem, mattis. Pellentesque tincidunt, diam eget accumsan posuere,Ligula mauris aptent interdum, sit est fusce arcu in sem, mattis. Pellentesque tincidunt, diam eget accumsan posuere, est sapien rhoncus nunc, feugiat fermentum urna arcu ut est. Sed bibendum dolor eu orci. Sed sollicitudin.
Pellentesque tincidunt, diam eget accumsan posuere,Ligula mauris aptent interdum, sit est fusce arcu in sem, mattis. Pellentesque tincidunt, diam eget accumsan posuere, est sapien rhoncus nunc, feugiat fermentum urna arcu ut est. Sed bibendum dolor eu orci. Sed sollicitudin.
</div>
			
			</div>
			<div class="top-panel-box">
				<h3>Recent Comments</h3>
				<ul>
					<!--{if $options['recentcomment_num']}-->
        	            <!--{if !$newcommentcache}-->
						<li>没有任何评论</li>
						<!--{else}-->
							<!--{loop $newcommentcache $data}-->
							<li><a href="$data[artilce_url]"><span>$data[author] - $data[dateline]</span>$data[content]</a></li>
							<!--{/loop}-->
						<!--{/if}-->
                    <!--{/if}-->
				</ul>
			</div>
		</div></div></div>
		<!-- /Top Panel -->
		
		<!-- Content -->
		<div id="content">
		
												<!-- Post -->
			<div class="post-sm"><div class="post-sm-top"><div class="post-sm-bottom">
				<h2>$stylevar[columnabcdatitle]</h2>
				<div class="post-sm-entry">
					$stylevar[columnabcdacontent]
				</div>
				<div class="post-sm-info">
					<div class="post-date">22nd of September</div>
					<div class="post-comments"></div>
				</div>
			</div></div></div>
			<!-- /Post -->
						<!-- Post -->
			<div class="post-sm"><div class="post-sm-top"><div class="post-sm-bottom">
				<h2>$stylevar[columnabcdbtitle]</h2>
				<div class="post-sm-entry">
					$stylevar[columnabcdbcontent]
				</div>
				<div class="post-sm-info">
					<div class="post-date">22nd of September</div>
					<div class="post-comments"></div>
				</div>
			</div></div></div>
			<!-- /Post -->
						<!-- Post -->
			<div class="post-sm"><div class="post-sm-top"><div class="post-sm-bottom">
				<h2>$stylevar[columnabcdctitle]</h2>
				<div class="post-sm-entry">
					$stylevar[columnabcdccontent]
				</div>
				<div class="post-sm-info">
					<div class="post-date">22nd of September</div>
					<div class="post-comments"></div>
				</div>
			</div></div></div>
			<!-- /Post -->
						<!-- Post -->
			<div class="post-sm"><div class="post-sm-top"><div class="post-sm-bottom">
				<h2>$stylevar[columnabcddtitle]</h2>
				<div class="post-sm-entry">
					$stylevar[columnabcddcontent]
				</div>
				<div class="post-sm-info">
					<div class="post-date">22nd of September</div>
					<div class="post-comments"></div>
				</div>
			</div></div></div>
			<!-- /Post -->
								
		</div>
		<!-- /Content -->
        
		<!--{else}-->
        
		<!-- Content -->
		<div id="content">
		
			<!-- Post -->
            <div class="post">
            <!--{if $total}-->
				<!--{loop $articledb $article}-->
					<div class="post-title">
					<h2><!--{if $article['stick']}-->[置顶] <!--{/if}-->
						<a href="$article[url]">$article[title]</a></h2>
					<div class="post-title-info">
						<div class="post-date">Dated: $article[dateline]</div>
						<div class="post-comments"><a href="$article[url]#comment">$article[comments] Comments</a></div>
					</div>
				</div>
				<div class="post-entry">
				<!--{if !$article['allowread']}-->
	                <div class="needpwd">
					<form action="$article[url]" method="post">
					这篇日志被加密了，请输入密码后查看。<br />
					<input class="formfield" type="password" name="readpassword" style="margin-right:5px;" />
					<button type="submit">提交</button>
					</form>
				</div>
                <!--{else}-->
                	<div class="post-body">$article[content]
						<!--{if $article['description']}-->
							<p>&raquo; <a href="$article[url]">阅读全文</a></p>
						<!--{/if}-->
					</div>
                <!--{/if}-->
				</div>
				<div class="post-category">
					Tags: $article[alltags]
                </div>
            	<!--{/loop}-->
                $multipage
			<!--{else}-->
				<div class="post-title">
					<h2></h2>
						<div class="post-title-info">
							<div class="post-date"></div>
							<div class="post-comments"></div>
						</div>
					<div class="post-entry">
						<p>没有任何文章</p>
    	            </div>
                </div>
                <div class="post-category"></div>
			<!--{/if}-->
			</div>
			<!-- /Post -->
						<!-- Navigation -->
			<div class="navigation">
				<div class="navigation-previous"></div>
				<div class="navigation-next"></div>
				<div class="clear"></div>
			</div>
			<!-- /Navigation -->
					
		</div>
		<!-- /Content -->        
		<!--{/if}-->
        
        {template sidecomm}
	
	</div>
	<!-- /Main -->
